package org.example.myleet.p440;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.findKthNumber(1, 1));
        Assert.isTrue(10 == solution.findKthNumber(13, 2));
        Assert.isTrue(13 == solution.findKthNumber(13, 5));
        Assert.isTrue(2 == solution.findKthNumber(13, 6));
        Assert.isTrue(3 == solution.findKthNumber(13, 7));
        Assert.isTrue(4 == solution.findKthNumber(13, 8));
        Assert.isTrue(5 == solution.findKthNumber(13, 9));
        Assert.isTrue(9 == solution.findKthNumber(13, 13));
        Assert.isTrue(9 == solution.findKthNumber(20, 20));
        Assert.isTrue(9999 == solution.findKthNumber(10000, 10000));
    }
}
